package cn.kgc.crowdfundingadmin02.service;

import cn.kgc.crowdfundingadmin02.pojo.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author shkstart
 * @create 2020-02-26 9:28
 */
public interface RoleService {

    //分页查询
    public PageInfo<Role> queryForKeywordWithPage(
        Integer pageNum,
        Integer pageSize,
        String keyword
            );
        //根据id查询
    public List<Role> getRoleListByIdList(List<Integer> roleIdList);
        //根据id删除
    public void batchRemove(List<Integer> roleIdList);

    //增加 t_role
    public void saveRole(String roleName);

    //修改 t_role
    public void updateRole(Role role);




    //查询已分配角色
    public List<Role> getAssignedRoleList(Integer adminId);
    //查询未分配角色
    public List<Role> getUnAssignedRoleList(Integer adminId);


    //更新关系
    public void updateRelationship(Integer adminId, List<Integer> roleIdList);
}
